Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext #7019

Merged
merged 12 commits into from
Sep 6, 2023

Conversation

S-Panta
Copy link
Contributor

@S-Panta S-Panta commented Aug 11, 2023

Description

This PR refactors the steps in the Provisioning API and moves those steps relating to user creation to the GraphContext file. Only the test code which are in use in the current feature file are moved while the unused code relating to user creation aren't cleaned in this PR. Only the test code of Given steps are refactored in the process.

Related Issue

Motivation and Context

How Has This Been Tested?

  • locally
  • ci

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@S-Panta S-Panta force-pushed the refactoring-user-creation-testcode-to-graphapi branch from 9fcd2de to 3599c15 Compare August 11, 2023 06:49
@S-Panta S-Panta self-assigned this Aug 11, 2023
@S-Panta S-Panta marked this pull request as ready for review August 11, 2023 07:03
@S-Panta S-Panta force-pushed the refactoring-user-creation-testcode-to-graphapi branch 5 times, most recently from 934c890 to e312930 Compare August 15, 2023 08:46
@S-Panta S-Panta changed the title [tests-only][full-ci] moving user creation steps from provisioning into GraphContext [tests-only][full-ci] moving Given user creation steps from provisioning into GraphContext Aug 15, 2023
@S-Panta S-Panta changed the title [tests-only][full-ci] moving Given user creation steps from provisioning into GraphContext [tests-only][full-ci] refactoring user creation given steps from provisioning into GraphContext Aug 15, 2023
@S-Panta S-Panta changed the title [tests-only][full-ci] refactoring user creation given steps from provisioning into GraphContext [tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext Aug 15, 2023
@S-Panta S-Panta force-pushed the refactoring-user-creation-testcode-to-graphapi branch 4 times, most recently from af51a46 to ce715e4 Compare August 17, 2023 08:19
@S-Panta S-Panta force-pushed the refactoring-user-creation-testcode-to-graphapi branch 4 times, most recently from 075c846 to ac8edad Compare August 21, 2023 05:49
@S-Panta S-Panta force-pushed the refactoring-user-creation-testcode-to-graphapi branch from 695f715 to 8aadb65 Compare September 5, 2023 05:33
@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saw-jan saw-jan merged commit 5efc3c5 into master Sep 6, 2023
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the refactoring-user-creation-testcode-to-graphapi branch September 6, 2023 03:37
ownclouders pushed a commit that referenced this pull request Sep 6, 2023
…ovisioning into GraphContext (#7019)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
@SwikritiT
Copy link
Contributor

@S-Panta can you please backport this PR to stable-4.0 as well

S-Panta added a commit that referenced this pull request Sep 11, 2023
…ovisioning into GraphContext (#7019)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
saw-jan added a commit that referenced this pull request Sep 11, 2023
…ovisioning into GraphContext (#7019) (#7259)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
ownclouders pushed a commit that referenced this pull request Sep 11, 2023
…ovisioning into GraphContext (#7019) (#7259)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
ownclouders pushed a commit that referenced this pull request Sep 12, 2023
…ovisioning into GraphContext (#7019) (#7259)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
ownclouders pushed a commit that referenced this pull request Sep 12, 2023
…ovisioning into GraphContext (#7019) (#7259)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
ownclouders pushed a commit that referenced this pull request Sep 12, 2023
…ovisioning into GraphContext (#7019) (#7259)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
ownclouders pushed a commit that referenced this pull request Sep 13, 2023
…ovisioning into GraphContext (#7019) (#7259)

* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants